﻿using UnityEngine;
using UnityEngine.UI;

/// <summary>
/// HK_Button对应按钮音效事件注册示例
/// </summary>
public class HK_ButtonAudioExample : MonoBehaviour
{
    void Start()
    {
        HK_Button.defaultAudio_Event += PlayDefaultAudio;
        HK_Button.type1Audio_Event += PlayType1Audio;
        HK_Button.type2Audio_Event += PlayType2Audio;
    }

    void PlayDefaultAudio()
    {
        Debug.Log("Play Default Audio...");
    }

    void PlayType1Audio()
    {
        Debug.Log("Play Type1 Audio...");
    }

    void PlayType2Audio()
    {
        Debug.Log("Play Type2 Audio...");
    }
}
